package com.cyq.day15.Demo4;

public class Worker extends Employee{
    char category;
    boolean dressAllowance;

    public Worker() {
    }

    public Worker(boolean dressAllowance) {
        this.dressAllowance = dressAllowance;
    }

    public Worker(String name, boolean sex, char category, boolean dressAllowance) {
        super(name, sex);
        this.category = category;
        this.dressAllowance = dressAllowance;
    }
    public void isDressAll(){
        if (this.dressAllowance){
            System.out.println("不提供服装补贴");
        }else{
            System.out.println("提供服装补贴");
        }

    }
}
